import instance from '../utils/request'
const getchannels = () => {
  return instance({
    url: '/v1_0/user/channels',
    method: 'get'
  })
}
/* eslint-disable */
const getarticles = (channel_id, timestamp) => {
  return instance({
    url: '/v1_1/articles',
    method: 'get',
    params: {
      with_top: 0,
      channel_id,
      timestamp
    }
  })
}
export { getarticles, getchannels }
